# define _CRT_SECURE_NO_WARNINGS 1
# include<stdio.h>

int main()
{
	int arr[] = { 9,6,8,5,4,4,6,7,2,1 };
	int sz = sizeof(arr) / sizeof(arr[0]);
	int i = 0;
	int j = 0;
	for (i = 0; i < sz; i++)
	{
		for (j = 0; j < sz-1; j++)
		{
			if (arr[j] > arr[j + 1])
			{
				int ret = 0;
				ret = arr[j];
				arr[j] = arr[j + 1];
				arr[j + 1] = ret;
			}
		}
	}
	for (j = 0; j < sz-1; j++)
	{
		printf("%d", arr[j]);
	}


	return 0;
}